<template>
  <el-dialog title="提示" :visible="show" append-to-body width="30%">
    <span>这是一段信息</span>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="toggle(false)">取 消</el-button>
        <el-button type="primary" @click="toggle(false)">确 定</el-button>
      </span>
    </template>
  </el-dialog>
</template>

<script>
export default {
  name: "createDir",
  data: () => ({
    show: false,
  }),
  methods: {
    toggle(show) {
      this.show = show;
    },
  },
};
</script>
